package com.cyf.plc.bean

import androidx.annotation.Keep
import com.squareup.moshi.JsonClass

@Keep
@JsonClass(generateAdapter = true)
class FloorRoomResponse {
    var msg: String? = null
    var code = 0
    var data: List<DataBean>? = null

    @Keep
    @JsonClass(generateAdapter = true)
    class DataBean {
        var page = 0
        var limit = 0
        var id = 0
        var createTime: String? = null
        var updateTime: Any? = null
        var deviceId: String? = null
        var floor: String? = null
        var sort = 0
        var room: RoomBean? = null
        var floorRoomList: List<FloorRoomListBean>? = null

        @Keep
        @JsonClass(generateAdapter = true)
        class RoomBean {
            var page = 0
            var limit = 0
            var id = 0
            var createTime: String? = null
            var updateTime: Any? = null
            var deviceId: String? = null
            var name: String? = null
            var communityId: Any? = null
            var community: Any? = null
            override fun toString(): String {
                return "RoomBean(page=$page, limit=$limit, id=$id, createTime=$createTime, updateTime=$updateTime, deviceId=$deviceId, name=$name, communityId=$communityId, community=$community)"
            }
        }
        @Keep
        @JsonClass(generateAdapter = true)
        class FloorRoomListBean {
            var page = 0
            var limit = 0
            var id = 0
            var createTime: String? = null
            var updateTime: Any? = null
            var floorId: Any? = null
            var room: String? = null
            var type: String? = null
            var sort = 0
            override fun toString(): String {
                return "FloorRoomListBean(page=$page, limit=$limit, id=$id, createTime=$createTime, updateTime=$updateTime, floorId=$floorId, room=$room, type=$type, sort=$sort)"
            }
        }

        override fun toString(): String {
            return "DataBean(page=$page, limit=$limit, id=$id, createTime=$createTime, updateTime=$updateTime, deviceId=$deviceId, floor=$floor, sort=$sort, room=$room, floorRoomList=$floorRoomList)"
        }
    }

    override fun toString(): String {
        return "FloorRoomResponse(msg=$msg, code=$code, data=$data)"
    }
}